/**
 * JS API 示例配置内容
 */
map.Config.customToV32('/', '9d7450722a8448d6b9087f68e2444ebf', null, '/');
style = "minemap://service/solu/style/id/vector";
style2 = "minemap://service/solu/style/id/raster";
mapUrl = "../gismap";
isShowMenu = false;// 是否显示可视化jsapi模块
isShowPsr = false;// 是否显示电网示例
openAdapter = false; //地图方案列表展示是否开启自动适配
adapterStyleIDS = []; //地图方案列表展示强制开启适配的style ID串集合。 如果关掉设置为 ['']即可
zoom = 7;
var ajax = new XMLHttpRequest();
ajax.open("GET", "/gismap/center.json", false);
ajax.send(null);

if (ajax.readyState === 4 && ajax.status == "200") {
    const data = JSON.parse(ajax.responseText);
    if (data) {
        center = data.center;
    }
}

/**
 * 
 * 地图方案列表配置内容
 * 
 * 
 */
mapStyle = [
    // {
    //     "id": "vector-foshan",
    //     "style": "minemap://service/solu/style/id/12767",
    //     "center": [113.18741, 23.15662],
    //     "zoom": 8,
    //     "minZoom": 1,
    //     "maxZoom": 19,
    //     "iamge": "standard.png",
    //     "mapStyle": "标准地图",
    //     "mapType": "矢量导航版",
    //     "author": "nanwang",
    //     "updateData": "2020-08-24"
    // },
    // {
    //     "id": "vector-light-foshan",
    //     "style": "minemap://service/solu/style/id/12768",
    //     "center": [113.42787, 23.12957],
    //     "zoom": 8,
    //     "minZoom": 1,
    //     "maxZoom": 19,
    //     "iamge": "standard.png",
    //     "mapStyle": "标准地图",
    //     "mapType": "矢量清新版",
    //     "author": "nanwang",
    //     "updateData": "2020-08-24"
    // },
    // {
    //     "id": "raster-foshan",
    //     "style": "minemap://service/solu/style/id/12769",
    //     "center": [113.46036, 23.28009],
    //     "zoom": 8,
    //     "minZoom": 1,
    //     "maxZoom": 19,
    //     "iamge": "standard.png",
    //     "mapStyle": "标准地图",
    //     "mapType": "高清栅格",
    //     "author": "nanwang",
    //     "updateData": "2020-08-24"
    // },
    // {
    //     "id": "satellite-foshan",
    //     "style": "minemap://service/solu/style/id/12770",
    //     "center": [112.8907512, 23.0882368],
    //     "zoom": 8,
    //     "minZoom": 1,
    //     "maxZoom": 19,
    //     "iamge": "standard.png",
    //     "mapStyle": "标准地图",
    //     "mapType": "高清影像",
    //     "author": "nanwang",
    //     "updateData": "2020-08-24"
    // },
    // {
    //     "id": "vector-dark-foshan",
    //     "style": "minemap://service/solu/style/id/12772",
    //     "center": [113.21766, 23.04795],
    //     "zoom": 8,
    //     "minZoom": 1,
    //     "maxZoom": 19,
    //     "iamge": "standard.png",
    //     "mapStyle": "标准地图",
    //     "mapType": "都市黑夜",
    //     "author": "nanwang",
    //     "updateData": "2020-08-24"
    // },
    {

        "id": "raster-normal",
        "style": "minemap://service/solu/style/id/raster-normal",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "standard.png",
        "mapStyle": "标准风格",
        "mapType": "高清栅格",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "raster-midnight",
        "style": "minemap://service/solu/style/id/raster-midnight",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "nightblue.png",
        "mapStyle": "午夜蓝风格",
        "mapType": "高清栅格",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "raster-dark",
        "style": "minemap://service/solu/style/id/raster-dark",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "citynight.png",
        "mapStyle": "黑夜风格",
        "mapType": "高清栅格",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "raster-lightgray",
        "style": "minemap://service/solu/style/id/raster-lightgray",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "lightgray.png",
        "mapStyle": "浅灰色风格",
        "mapType": "高清栅格",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "raster-fresh",
        "style": "minemap://service/solu/style/id/raster-fresh",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "fresh.png",
        "mapStyle": "清新风格",
        "mapType": "高清栅格",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "vector-normal",
        "style": "minemap://service/solu/style/id/vector-normal",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "standard.png",
        "mapStyle": "标准风格",
        "mapType": "矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "vector-midnight",
        "style": "minemap://service/solu/style/id/vector-midnight",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "nightblue.png",
        "mapStyle": "午夜蓝风格",
        "mapType": "矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "vector-dark",
        "style": "minemap://service/solu/style/id/vector-dark",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "citynight.png",
        "mapStyle": "黑夜风格",
        "mapType": "矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "vector-lightgray",
        "style": "minemap://service/solu/style/id/vector-lightgray",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "lightgray.png",
        "mapStyle": "浅灰色风格",
        "mapType": "矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "vector-fresh",
        "style": "minemap://service/solu/style/id/vector-fresh",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "fresh.png",
        "mapStyle": "清新风格",
        "mapType": "矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "satellite-normal",
        "style": "minemap://service/solu/style/id/satellite-normal",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "standard.png",
        "mapStyle": "纯影像",
        "mapType": "影像",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "satellite-blend",
        "style": "minemap://service/solu/style/id/satellite-blend",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "standard.png",
        "mapStyle": "影像+矢量",
        "mapType": "影像+矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    },
    {
        "id": "raster-blend",
        "style": "minemap://service/solu/style/id/raster-blend",
        "center": [109.87851, 19.15213],
        "zoom": 8,
        "minZoom": 1,
        "maxZoom": 19,
        "iamge": "standard.png",
        "mapStyle": "高清栅格+矢量",
        "mapType": "高清栅格+矢量",
        "author": "nanwang",
        "updateData": "2020-08-24"
    }
]
